import request from '@/util/request'

// fetch refill condition
export function fetchRefill(data) {
  return request({
    url: '/api/execute/refill/fetch',
    method: 'post',
    data
  })
}

// create refill
export function creatRefillOrder(data) {
  return request({
    url: '/api/execute/refill/create-order',
    method: 'post',
    data
  })
}

// get refill amount
export function getRefillAmount(data) {
  return request({
    url: '/api/execute/refill/get-amount',
    method: 'post',
    data
  })
}

// ----------------------------------------

// get user card
export function getCard(data) {
  return request({
    url: '/api/execute/card/fetch-card',
    method: 'post',
    data
  })
}

// ----------------------------------------

// my account

export function myAccount(data) {
  return request({
    url: '/api/my/account/account',
    method: 'post',
    data
  })
}

export function myCommission(data) {
  return request({
    url: '/api/my/account/commission',
    method: 'post',
    data
  })
}

export function myConsume(data) {
  return request({
    url: '/api/my/account/consume',
    method: 'post',
    data
  })
}

export function myTransfer(data) {
  return request({
    url: '/api/my/account/transfer',
    method: 'post',
    data
  })
}
